﻿namespace MathService.Statistic.RandomNumbers
{
    public class DoubleUniform : DoubleRND
    {
        public DoubleUniform() { }
        public DoubleUniform(double sigma) : base(sigma) { }
        public DoubleUniform(double sigma, double Offset) : base(sigma, Offset) { }

        protected override double GetValue()
        {
            return (f_Generator.NextDouble() * f_sigma) - f_sigma / 0.5 + f_m;
        }
    }
}
